<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="/WEB-INF/tld/orderStatus.tld" prefix="os" %>
<%@ taglib uri="/WEB-INF/tld/fmt.tld" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/tld/core.tld" prefix="c"%>
<%@ taglib uri="/WEB-INF/tld//unicode_zh_code.tld" prefix="uc" %>
<html>
<%@ include file="../common.jsp"%>
<script type="text/javascript" src="<%=basePath%>js/datePicker/WdatePicker.js" defer="defer"></script>
<script type="text/javascript" src="js/artDialog/artDialog.js?skin=idialog" ></script>
<script type="text/javascript" src="js/planeButton.js"></script>
<script type="text/javascript" src="js/page.js"></script>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}
-->
</style>
<body>
<form action="detail_childrenList.shtml" method="post">
	<table width="100%" border="0" cellpadding="0" cellspacing="0" id="myTable">
		<tr>
			<td width="16" valign="top" background="images/mail_leftbg.gif"><img
				src="images/left-top-right.gif" width="17" height="29" /></td>
			<td valign="top" background="images/content-bg.gif">
			<div class="titlebt" style="width:80px; float: left">航程订单</div><div class="titlebt" style="cursor: pointer;" onclick="location.href='plane_list.shtml'">所有订单</div>
			</td>
			<td width="16" valign="top" background="images/mail_rightbg.gif"><img
				src="images/nav-right-bg.gif" width="16" height="29" /></td>
		</tr>
		<tr>
			<td valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
			<td valign="top" bgcolor="#F7F8F9">
			<br/>
				<table border="0" cellpadding="0" cellspacing="0" width="100%" class="mytable">
				<tr><th class="left" width="15%">订单类型</th><td class="border-top">
					<select name="children.orderStatus" id="orderStatus">
						<option value="">所有订单</option>
						<option value="-9">预订失败</option>
						<option value="-99">等待预订</option>
						<option value="0">等待支付</option>
						<option value="1">平台支付成功</option>
						<option value="2">出票完成</option>
						<option value="3">申请废票</option>
						<option value="4">申请退票</option>
						<option value="7">暂不能出票</option>
					</select>
					<script type="text/javascript">
						$('#orderStatus').attr('value','${children.orderStatus}');
					</script>
				</td></tr>
        		<tr><th class="left" width="15%">选择条件</th><td colspan="3">
	        		<input type="radio" ${children.title==1 || vo.parentOrder.title==null?'checked':''} name="children.title" id="pnrno" value="5"/><label for="pnrno">PNR编码</label>
	        		<input type="radio" ${children.title==2?'checked':''} name="children.title" id="passenger" value="3"/><label for="passenger">乘客姓名</label>
        		</td></tr>
        		<tr><th class="left" width="15%">输入条件</th><td><input name="children.decription" value="${children.decription}" /></td></tr>
        		<tr><th class="left" width="15%">选择日期</th><td><input type="text" class="Wdate" value="${children.startTime}" onclick="WdatePicker({maxDate:'%y-%M-%d'});" readonly="readonly" name="children.startTime" id="startTime" align="middle" /> ~
					<input type="text" class="Wdate"  value="${children.endTime}" onclick="WdatePicker({minDate:'#F{$dp.$D(\'startTime\')}',maxDate:'%y-%M-%d'});" readonly="readonly" name="children.endTime" align="middle" /></td></tr>
        		<tr>
        			<td style="text-align: center;" class="left" colspan="5"><button id="btn_search" type="submit" class="Submit">立即查询</button>&nbsp;&nbsp;<button id="btn_clear" type="button" onclick="clearAll(this.form)" class="Submit">清 空</button></td>
        		</tr>
        		</table>
        	
			</td>
			<td background="images/mail_rightbg.gif">&nbsp;</td>
		</tr>
		<tr>
			<td valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
			<td valign="top" bgcolor="#F7F8F9">
				<TABLE height="auto" border=0 class="mytable" cellPadding=0 cellSpacing=0>
		<TBODY>
			<TR>
				<TD height="5" colspan="16"></TD>
			</TR>
			<TR>
				<TH class="left">订单状态</TH>
				<TH>航班日期</TH>
				<TH>航程信息</TH>
				<TH>航班信息</TH>
				<TH>票面价</TH>
				<TH>机建费</TH>
				<TH>平台订单号</TH>
				<TH>PNR编码</TH>
				<TH>&nbsp;</TH>
			</TR>
			<s:if test="#request.orders!=null && #request.orders.size()>0">
			<s:iterator value="#request.orders" var="order">
				<TR>
					<td class="left"><os:apiJrOrder status="${order.orderStatus!=null?order.orderStatus:'-99'}" /></td>
					<td class="left"><fmt:formatDate value="${order.sdate }" pattern="yyyy年MM月dd日"/></td>
					 <td><uc:code codeType="city" code="${order.scityCode}"/>(${order.scityCode})&nbsp;[<s:date name="depTime" format="HH:mm"/>]<uc:code codeType="flight" code="${order.scityCode}"/>
					 <br/>
					 <uc:code codeType="city" code="${order.ecityCode}"/>(${order.ecityCode})&nbsp;[<s:date name="arrTime" format="HH:mm"/>]<uc:code codeType="flight" code="${order.ecityCode}"/></td></td>
					<td>${order.flightNo}[${order.cabinCode}]</td>
					<td><fmt:formatNumber value="${order.fare}" pattern="￥0.00" /></td>
					<td><fmt:formatNumber value="${order.tax}" pattern="￥0.00" /></td>
					<td>${order.terraceSn!=null?order.terraceSn:'未提交预订'}</td>
					<td>${order.pnrno!=null?order.pnrno:'——'}</td>
					<td><a href="javascript:void(0);" class="left_txt3" style="cursor: hand;" onclick = "location.href='detail_getObject.shtml?cid=${order.pid}';return false;">查看</a></td>
				</TR>
			</s:iterator>
			<tr>
				<td class="left" colspan="10" align="right"
					style="background: #FAFBFC repeat-x; height: 28">
					${pageBean.pageToolsMenu}</td>
			</tr></s:if>
			<s:else>
					<tr><td class="left" colspan="10" align="center"
							style="background: #FAFBFC repeat-x; height: 28">
							未搜索到符合条件的信息……</td>
				</tr></s:else>
			<TR>
				<TD height="5" colspan="16"></TD>
			</TR>
		</TBODY>
	</TABLE>
			</td>
			<td background="images/mail_rightbg.gif">&nbsp;</td>
		</tr>
		
		<tr>
			<td valign="bottom" background="images/mail_leftbg.gif"><img
				src="images/buttom_left2.gif" width="17" height="17" /></td>
			<td background="images/buttom_bgs.gif"><img
				src="images/buttom_bgs.gif" width="17" height="17"></td>
			<td valign="bottom" background="images/mail_rightbg.gif"><img
				src="images/buttom_right2.gif" width="16" height="17" /></td>
		</tr>
	</table>
	</form>
</body>
</html>